package com.awan.controller;

import java.util.Date;

public class Chat {
	
	int _id;
	String _from;
	String _to;
	String _msg;
	String _date;
	
	public Chat(){}
	
	public Chat(int id, String from, String to, String msg, String date){
		this._id = id;
		this._from = from;
		this._to = to;
		this._msg = msg;
		this._date = date;
	}
	
	public Chat(String from, String to, String msg, String date){
		this._from = from;
		this._to = to;
		this._msg = msg;
		this._date = date;
	}
	
	public Chat(String from, String to, String msg){
		this._from = from;
		this._to = to;
		this._msg = msg;
		this._date = new Date().toString();
	}
	
	public int getId(){
		return this._id;
	}
	public String getFrom(){
		return this._from;
	}
	public String getTo(){
		return this._to;
	}
	public String getMsg(){
		return this._msg;
	}
	public String getDate(){
		return this._date;
	}
	
	public void setId(int id){
		this._id = id;
	}
	public void setFrom(String from){
		this._from = from;
	}
	public void setTo(String to){
		this._to = to;
	}
	public void setMsg(String msg){
		this._msg = msg;
	}
	public void setDate(String date){
		this._date = date;
	}

}
